package org.example.api;

import java.util.concurrent.Callable;

/**
 * author: Li Qing
 * date: 2024/5/10 16:08
 * description:
 */

public class ChatGptCnn implements Callable<String>
{
    private String prompt;


    public String getPrompt()
    {
        return prompt;
    }

    public void setPrompt(String prompt)
    {
        this.prompt = prompt;
    }

    @Override
    public String call() throws Exception
    {
        return ChatGptUtil.inquire(prompt);
    }
}
